﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BO;
using DAO;
using System.Data;

namespace BL
{
    public class B_Field
    {
        D_Field dal = new D_Field();
        public static B_Field CreateInstance()
        {
            return new B_Field();
        }
        public bool CreateOneField(Field_Info Field_Info)
        {

            return dal.CreateOneField(Field_Info);
        }
        public bool EditOneField(Field_Info Field_Info)
        {

            return dal.EditOneField(Field_Info);
        }
        public bool RemoveOneField(int FieldID)
        {

            return dal.RemoveOneField(FieldID);
        }
        public DataTable GetAllField()
        {
            
            return dal.GetAllField();
        }
        public DataTable GetAllFieldByFieldType(int fieldTypeID)
        {

            return dal.GetAllFieldByFieldType(fieldTypeID);
        }
        public Field_Info GetOneField(int FieldID)
        {
            
            return dal.GetOneField(FieldID);
        }
    }
}
